package com.changyinBus.common.core.domain.entity;

import com.changyinBus.common.core.domain.BaseEntity;
import com.changyinBus.common.utils.IDGenerator;
import lombok.Data;

import java.util.Date;

@Data
public class SysTransfer extends BaseEntity {
    private long id;
    //收款人openid
    private String openId;
    //微信名称
    private String nickname;
    //性别 0 男
    private int sex;
    //打款金额
    private String amount;
    private Date createTime;
    //微信打款流水号
    private String transferBillNo;

    public SysTransfer() {}

    public SysTransfer(SysWxInfo info,String amulet) {
        this.id = IDGenerator.getID();
        this.openId = info.getOpenid();
        this.nickname = info.getNickname();
        this.sex =  info.getSex();
        this.amount = amulet;
    }
}
